# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an

from PyQt5.QtWidgets import *
import sys


app = QApplication([])
wight = QWidget()

def showsg():
    QMessageBox.information(wight,"信息提示框","测试一下")

btn = QPushButton("点击",wight)
btn.clicked.connect(showsg)
wight.show()
sys.exit(app.exec_())